/**
 * Created by CK on 2017/3/1.
 */
  var list;
$(document).ready(function () {
    list = $('#List');
    var type = xhTool.getQuery('type');
	$('.xh-datagrid-toolbar').parseToolbar(afterParseToolbar);
    $('.xh-form').parseForm($('#bt_form_add, #bt_form_edit'));
    list.initDataGrid(baseUrl + 'Statsexplain/getqBankList').setSelectThenEnable(['bt_list_del', 'bt_list_Publish']);
	DataGrid.onDblClickRow = function(rowIndex, rowData){
        window.top.xhTop.createNewTab('题库详情统计', baseUrl + 'Statsexplain/qBankInfo?viewType=qbank&iSysTrId=' + rowData.iSysTrId + '&sSysTrName=' + (rowData.sSysTrName), true);
    };
});

function afterParseToolbar()
{
    $.overtFun.vagueSearch(list);
}
